import 'package:flutter_chat/common/service/services.dart';
import 'package:flutter_chat/common/utils/utils.dart';
import 'package:flutter_chat/common/widget/widgets.dart';

import 'state.dart';

class TestLogic extends CustomGetxController {
  final TestState state = TestState();

  @override
  Function(dynamic)? webSocketListener = (message) {
    LogUtil.p('websocket ------- 订阅者 -------');
    LogUtil.p(message);
    NotificationService.to.show("服务端消息", message);
  };

  @override
  void onClose() {
    super.onClose();
    LogUtil.p("执行 子类 onClose");
  }
}
